package com.yd.domain.business;

import com.yd.domain.commom.DomainObject;
import com.yd.domain.sys.DicEnum;

import java.util.Date;

/**
 * @author zy
 * @create 2018-03-07 9:12
 * @desc 信息交流
 **/
public class Message extends DomainObject<Message> {
    private String content;//内容
    private String publishUser;//发布人
    private Date publishTime=new Date();//发布时间
    private String receiveUser;//接收人
    private String token;//谈话标识
    /**
     * @Author: zy
     * @Desc: 信息交流表数据查询
     * @Date:  2018/3/13
     * @Param
     */
    private String publishUserName;//发布人姓名
    private String receiveUserName;//接收人姓名
    private String strMsg;//批量删除接受参数
    private String type= DicEnum.TYPE_MESSAGE.TYPE_TEXT;//类型

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getPublishUser() {
        return publishUser;
    }

    public void setPublishUser(String publishUser) {
        this.publishUser = publishUser;
    }

    public Date getPublishTime() {
        return publishTime;
    }

    public void setPublishTime(Date publishTime) {
        this.publishTime = publishTime;
    }

    public String getReceiveUser() {
        return receiveUser;
    }

    public void setReceiveUser(String receiveUser) {
        this.receiveUser = receiveUser;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public String getPublishUserName() {
        return publishUserName;
    }

    public void setPublishUserName(String publishUserName) {
        this.publishUserName = publishUserName;
    }

    public String getReceiveUserName() {
        return receiveUserName;
    }

    public void setReceiveUserName(String receiveUserName) {
        this.receiveUserName = receiveUserName;
    }

    public String getStrMsg() {
        return strMsg;
    }

    public void setStrMsg(String strMsg) {
        this.strMsg = strMsg;
    }

    @Override
    public String toString() {
        return "Message{" +
                "content='" + content + '\'' +
                ", publishUser='" + publishUser + '\'' +
                ", publishTime=" + publishTime +
                ", receiveUser='" + receiveUser + '\'' +
                ", token='" + token + '\'' +
                ", publishUserName='" + publishUserName + '\'' +
                ", receiveUserName='" + receiveUserName + '\'' +
                ", strMsg='" + strMsg + '\'' +
                '}';
    }
}
